package com.cloud.controller;

import com.cloud.entity.CommonResult;
import com.cloud.entity.Payment;
import org.springframework.web.bind.annotation.PathVariable;

public class SentinelFallBackHandler {


    public static CommonResult<Payment> fallBackHandlerOnException(@PathVariable String id,Throwable e){
        return new CommonResult<>(200199, e.getMessage());
    }
}
